class Section < ActiveRecord::Base
  
  validates :name, :presence   => true
  
  has_many :categories
  
  has_many :subsections,  class_name: "Section", foreign_key: "parent_section_id"

end
